﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PowerIndex.aspx.cs" Inherits="Hisun.View.CostDriver.PowerIndex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <script language="javascript" for="document" event="onkeydown">

  if(event.keyCode==13 && event.srcElement.type!="button" && event.srcElement.type!="submit" && event.srcElement.type!="reset" && event.srcElement.type!="textarea" && event.srcElement.type!="")
{
      event.keyCode=9;
   }

</script> 
</head>
<body>
    <form id="form1" runat="server">
      <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">燃动系数管理</div></div>
    <div class ="CommonPage_Body">

    
        <table >
            <tr>
                <td colspan="3">
             
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:RadioButtonList ID="RadioButtonList_PowerSelect" runat="server" 
                        RepeatDirection="Horizontal" SkinID="RadioButtonList" AutoPostBack="True" 
                        onselectedindexchanged="RadioButtonList_PowerSelect_SelectedIndexChanged">
                        <asp:ListItem Value="0">水</asp:ListItem>
                        <asp:ListItem Value="1">电</asp:ListItem>
                        <asp:ListItem Value="2">空压</asp:ListItem>
                        <asp:ListItem Value="3">冷冻</asp:ListItem>
                        <asp:ListItem Value="4">蒸汽</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label2" runat="server" Text="作业中心名称筛选：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_CenterName" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" Text="查询" onclick="MyClick" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_MainQuery" runat="server">
                       <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" OnClick="MyClick">&lt;&lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" OnClick="MyClick"> &lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" OnClick="MyClick">&gt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" OnClick="MyClick"> &gt;&gt;</asp:LinkButton>
                    <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                    <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" 
                        SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" Text="页" SkinID="Label"></asp:Label>
                    <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                        ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                    <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                        Text="GO" /> <asp:GridView ID="GridView_Query" runat="server" 
                            AutoGenerateColumns="False" SkinID="GridView">
                            <Columns>
                                <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" />
                                <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" />
                                <asp:TemplateField HeaderText="系数">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_Value" runat="server" 
                                            Text='<%# String.Format("{0:N2}",Eval("系数")) %>'></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                            ControlToValidate="TextBox_Value" ErrorMessage="*" Operator="DataTypeCheck" 
                                            Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <asp:Button SkinID = "Button" ID="Button_Save" runat="server" onclick="Button_Save_Click" 
                            Text="保存" ValidationGroup="Group" />
                        <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                        <asp:HiddenField ID="CurrentCostItem" runat="server" Value="0" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<% =alert%>